<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title><s:text name="核算项目--供应商"></s:text></title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/date1.js"></script>
		<script type="text/javascript" src="js/validate.js"></script>
		<script type="text/javascript">
	function validate() {
		var supplierCode = document.getElementById("supplierCode");
		var supplierName = document.getElementById("supplierName");
		var creditNum = document.getElementById("creditNum");
		var increaseTaxPercent = document.getElementById("increaseTaxPercent");
		if (!isNotNull(supplierCode, '代码')
				|| !f_check_NumOrLett(supplierCode, '代码')
				|| !f_check_ZhOrNumOrLett(supplierCode, '代码'))
			return false;
		if (!isNotNull(supplierName, '名称')
				|| !f_check_ZhOrNumOrLett(supplierCode, '代码'))
			return false;
		if (!isNotNull(creditNum, '信用额度') || !f_check_float(creditNum, '信用额度'))
			return false;
		if (!isNotNull(increaseTaxPercent, '增值税率')
				|| !f_check_float(increaseTaxPercent, '增值税率'))
			return false;
	}
</script>
	</head>

	<body>
		<div id="info_all" style="width: 510px;">
			<div id="info_top">
				<s:text name="核算项目--供应商"></s:text>
			</div>
			<s:form action="addSupplier.action" method="post" theme="simple"
				onsubmit="return validate()">
				<div style="width: 500px; margin-top: 6px;">
					<table
						style="margin-top: 10px; background: #fbfbfb; color: #403040;"
						align="center">
						<tr>
							<td width="50px">
								<s:text name="代码*："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.supplierCode" size="15"
									id="supplierCode" maxlength="12"></s:textfield>
								<s:hidden name="supplierModel.supplierId"></s:hidden>
							</td>
							<td>
								<s:text name="名称*："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.supplierName" size="15"
									id="supplierName" maxlength="12"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="信用额度*："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.creditNum" size="15"
									id="creditNum" maxlength="5"></s:textfield>
							</td>
							<td>
								<s:text name="增值税率(%)*："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.increaseTaxPercent" size="15"
									id="increaseTaxPercent" maxlength="5"></s:textfield>
							</td>

						</tr>

						<tr>
							<td>
								<s:text name="简称："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.supplierBrief" size="15"
									maxlength="15"></s:textfield>
							</td>
							<td>
								<s:text name="结算期限："></s:text>
							</td>
							<td>
								<s:textfield name="" size="15" maxlength="10" readonly="true"
									id="deadlineName"></s:textfield>
								<s:hidden
									name="supplierModel.PBaseAssistantmaterialBalancedeadlineId"
									id="deadlineId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectDeadline.action','department',970,500,1)">
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="地址："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.address" size="15"
									maxlength="15"></s:textfield>
							</td>
							<td>
								<s:text name="邮件地址："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.mailAddress" size="15"
									maxlength="15"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="区域："></s:text>
							</td>
							<td>
								<s:textfield name="areaModel.areaName" size="15" readonly="true" id="areaName"></s:textfield>
								<s:hidden name="supplierModel.PBaseAssistantmaterialAreaId" id="areaId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectArea.action','department',970,500,1)">
							</td>
							<td>
								<s:text name="税务登记号："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.taxRegisterNo" size="15"
									maxlength="15"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="行业："></s:text>
							</td>
							<td>
								<s:textfield size="15" id="industryName" name="industryModel.industryName"
									readonly="true"></s:textfield>
								<s:hidden name="supplierModel.PBaseAssistantmaterialIndustryId"
									id="industryId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectIndustry.action','department',970,500,1)">
							</td>
							<td>
								<s:text name="开户银行："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.openAccountBank" size="15"
									maxlength="15"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="电话："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.phone" size="15" maxlength="15"></s:textfield>
							</td>
							<td>
								<s:text name="银行账号："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.bankAccount" size="15"
									maxlength="30"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="传真："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.fax" size="15" maxlength="20"></s:textfield>
							</td>
							<td>
								<s:text name="联系人："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.linkman" size="15"
									maxlength="10"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="邮编："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.post" size="15" maxlength="10"></s:textfield>
							</td>
							<td>
								<s:text name="法人代表："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.responsibleMan" size="15"
									maxlength="10"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="省份："></s:text>
							</td>
							<td>
								<s:textfield name="supplierModel.province" size="15"
									maxlength="10"></s:textfield>
							</td>
							<td>
								<s:text name="部门："></s:text>
							</td>
							<td>
								<s:textfield size="15" name="deptDto.department.departmentName" readonly="true" id="departmentName"></s:textfield>
								<s:hidden name="supplierModel.PBaseVerifyprojectDepartmentId"
									id="departmentId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectDepartment.action','department',970,500,1)">
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="业务员："></s:text>
							</td>
							<td>
								<s:textfield size="15" readonly="true" id="candiateName" name="canDto.candiate.candiateName"></s:textfield>
								<s:hidden name="supplierModel.PBaseVerifyprojectCandiateId"
									id="candiateId"></s:hidden>
								<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectCandiate.action','candiate',1050,700,0)">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div style="margin: 6px; text-align: center;">
									<s:submit value="保存" onfocus="this.blur()"
										onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" id="btnsize"></s:submit>
								</div>
							</td>
							<td colspan="2">
								<div style="margin: 6px; text-align: center;">
									<input type="button" value="返回" onClick="history.go(-1)"
										onFocus="this.blur()" onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />
								</div>
							</td>
						</tr>
					</table>
				</div>
			</s:form>
		</div>
	</body>
</html>

